/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class PetTeaser {
    static categoryCode = '010090008';

    static categoryName = '逗宠器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return PetTeaser.categoryCode;
    }

    get categoryName() {
        return PetTeaser.categoryName;
    }

    getDirection(params) {
        return command({
            method: 'getDirection',
            methodId: 'p1vZLiLk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getExerciseTime(params) {
        return command({
            method: 'getExerciseTime',
            methodId: 'pGox3ybq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightSwitch(params) {
        return command({
            method: 'getLightSwitch',
            methodId: 'phEcQNzR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSoundSwitch(params) {
        return command({
            method: 'getSoundSwitch',
            methodId: 'pDrhrHU1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0UvKo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDirection(params) {
        return command({
            method: 'setDirection',
            methodId: 'peH3eUi3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightSwitch(params) {
        return command({
            method: 'setLightSwitch',
            methodId: 'pZgubj4b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSoundSwitch(params) {
        return command({
            method: 'setSoundSwitch',
            methodId: 'ppAr4CtG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQDABx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default PetTeaser;
